﻿using ReflectionStudio.Core.Events;
using System;
using System.ComponentModel;
using System.Data;
using System.Windows;
namespace WPFExcelReport
{
    public partial class TFPSTPCOND
    {
        public TFPSTPCOND()
        {
            if (DesignerProperties.GetIsInDesignMode(this))
                return;
            MV = new VAPKOPF();
            this.DataContext = MV;

            InitializeComponent();
        }
        public override void QueryCommand(object sender, RoutedEventArgs e)
        {
            INFO = "";
            TBMain.Clear();
            dwData = TMV.TBMain.NewRow();
            dwData["APKMANDANT"] = app.Mandant;
            SResult = TMV.QAPK03(dwData);
            MergeData(SResult, false);
            base.QueryCommand(sender, e);
        }
        public override void vwMaster_CurrentChanged(object sender, EventArgs e)
        {
            base.vwMaster_CurrentChanged(sender, e); 
            INFO = "";
        }  
    }
}
